//
//  MiddleView.m
//  gosh
//
//  Created by 许小军 on 16/9/23.
//  Copyright © 2016年 wyzc. All rights reserved.
//

#import "MiddleView.h"
@interface MiddleView ()

//@property (weak, nonatomic) IBOutlet UIButton *loginregistbtn;


@end

@implementation MiddleView


+(instancetype)loginView
{
   return [[[NSBundle mainBundle]loadNibNamed:NSStringFromClass(self) owner:nil options:nil]firstObject];
}

+(instancetype)registView
{
    return [[[NSBundle mainBundle]loadNibNamed:NSStringFromClass(self) owner:nil options:nil]lastObject];
}

//-(void)awakeFromNib
//{
//    UIImage * image=_loginregistbtn.currentBackgroundImage;
//    image=[image stretchableImageWithLeftCapWidth:image.size.width*0.5 topCapHeight:image.size.height*0.5];
//    
//    [_loginregistbtn setBackgroundImage:image forState:UIControlStateNormal];
//}


@end
